package com.cizzy.favorite.feign;

import com.cizzy.favorite.common.Result;
import com.cizzy.favorite.entity.dao.VideoCountDAO;
import com.cizzy.favorite.entity.dto.VideoDTO;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 51755
 */
@Component
public class VideoFeignFallback implements VideoFeign {
    @Override
    public Result<List<VideoDTO>> getVideoListByIds(@RequestBody List<Long> videoIds) {
        return Result.error("调用失败");
    }

    @Override
    public Result<VideoCountDAO> addVideoCountById(@RequestParam("column") String column, @RequestParam("id") Long id, @RequestParam("count") Integer count) {
        return Result.error("调用失败");
    }
}
